const router = require('koa-router')()
const { getPetDetails, petCollection, getCollectStatus } = require("../controller/petDetailsController")

// 获取宠物详情数据
router.get('/petdetails', getPetDetails)
// 收藏宠物
router.post('/collection', petCollection)
// 获取收藏状态
router.get('/collectstate', getCollectStatus)

module.exports = router